<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model app\models\LoginForm */

$this->title = 'Login';
?>
<?php

$form = ActiveForm::begin([
    'action' => ['demo/login_in'],
    'method'=>'post',
    ]); ?>
<h1><?= Html::encode($this->title) ?></h1>

<p>Please fill out the following fields to login:</p>

    <?= $form->field($model, 'name') ?>
    <?= $form->field($model, 'password')->passwordInput() ?>
   
    <?= Html::submitButton('Login') ?>

<?php ActiveForm::end(); ?>